import request from '@/utils/request'

// 创建企业标准修订
export function addEnterprise(data?: any) {
  return request({
    url: '/project/enterprise-standard-revision/create',
    method: 'POST',
    data,
  })
}
// 获得企业标准修订分页
export function getEnterpriseList(params?: any) {
  return request({
    url: '/project/enterprise-standard-revision/page',
    method: 'GET',
    params,
  })
}

// 获得企业标准修订
export function getEnterpriseInfo(params?: any) {
  return request({
    url: '/project/enterprise-standard-revision/get',
    method: 'GET',
    params,
  })
}

// 删除企业标准修订
export const deleteEnterprise = (id: number) => {
  return request({
    url: `/project/enterprise-standard-revision/delete?id=${id}`,
    method: 'DELETE',
  })
}
// 更新企业标准修订
export const updateEnterprise = (data: any) => {
  return request({
    url: '/project/enterprise-standard-revision/update',
    method: 'PUT',
    data,
  })
}

// 导出企业标准修订 Excel
export function getEnterpriseExport(params: any) {
  return request({
    url: '/project/enterprise-standard-revision/export-excell',
    method: 'GET',
    responseType: 'blob',
    params,
  })
}
